package com.sunjob.mrotech.server;

import com.sunjob.common.domain.tech.*;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface RepairProcessServer {
    /** 获得拥有修程工艺的前几个一级构型 */
    List<TransShape> getRepairProcessByLimit3();

    /** 根据一级id获得一级修程工艺*/
    RepairProcess getRepairProcessByShapeId(Long shapeId);

    /** 新增一级修程工艺*/
    String insertRepairProcess(RepairProcess repairProcess);

    /** 绑定修程工艺通过构型id*/
    Boolean bindRepairProcessByShapeId(Long shapeId,Long repairProcessId);

    /** 根据一级id删除一个一级修程工艺*/
    String deleteRepairProcessById(Long repairProcessId);

    /** 更新一个一级修程工艺(小修改：不涉及到步骤改动)*/
    Boolean uptateRepairProcessSmall(RepairProcessDO repairProcessDO);

    /**更新一个一级修程工艺(大修改：涉及到步骤改动，更新版本号)*/
    Boolean uptateRepairProcessBig(RepairProcess repairProcess);
}
